package net.begincode.blog.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 带有分类的博文基础信息
 */
public class BlogBaseInfo implements Serializable {

    //博文id
    private Long blogId;
    //博文标题
    private String blogTitle;
    //博文摘要
    private String blogAbstract;
    //浏览次数
    private Integer views;
    //日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date cDate;

    //用户id
    private Long userId;

    public String getBlogAbstract() {
        return blogAbstract;
    }

    public void setBlogAbstract(String blogAbstract) {
        this.blogAbstract = blogAbstract;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getcDate() {
        return cDate;
    }

    public void setcDate(Date cDate) {
        this.cDate = cDate;
    }

    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }


    public String getBlogTitle() {
        return blogTitle;
    }

    public void setBlogTitle(String blogTitle) {
        this.blogTitle = blogTitle;
    }

    public Integer getViews() {
        return views;
    }

    public void setViews(Integer views) {
        this.views = views;
    }
}
